﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-13 12:49:31
// 负责人：lvsc
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
using OF.Component.DTO;

namespace OF.Component.BLL
{

    /// <summary>
    ///网办订单 扩展
    /// </summary>
    public partial class NetworkOrderOperate
    {
        /// <summary>
    	/// 根据断言条件获取单个网办订单
    	/// </summary>
        public static NetworkOrderInfo QuerySingle(Expression<Func<NetworkOrderInfo, bool>> predicate)
        {
            return dal.QuerySingle(predicate);
        }

        /// <summary>
        /// 根据断言条件获获取网办订单列表
        /// </summary>
        public static IList<NetworkOrderInfo> QueryList(Expression<Func<NetworkOrderInfo, bool>> predicate)
        {
            return dal.QueryList(predicate);
        }

        /// <summary>
        /// 获取用户id
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="bizTypeId"></param>
        /// <returns></returns>
        public static long GetOrderId(int userId, int bizTypeId)
        {
            return dal.GetOrderId(userId, bizTypeId);
        }

        /// <summary>
        /// 分页订单列表
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        public static IList<NetworkOrderDto> SearchList(NetworkOrderCondition condition)
        {
            return dal.SearchList(condition);
        }

        /// <summary>
        /// 订单详情
        /// </summary>
        /// <param name="orderId"></param>
        /// <returns></returns>
        public static NetworkOrderDetailDto GetOrderInfo(long orderId)
        {
            return dal.GetOrderInfo(orderId);
        }

        /// <summary>
        /// 获取订单列表
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        public static DataTable GetOrderList(NetworkOrderApiCondition condition)
        {
            return dal.GetOrderList(condition);
        }

        ///<summary>
        ///根据主键取出信息
        ///</summary>
        public static DataTable GetDetailByID(long orderID)
        {
            return dal.GetDetailByID(orderID);
        }
    }
}